<?php $tabId = $this->uuid('div', $this->here); ?>
<div id="divSites">
    <fieldset>
        <legend>Sites Information</legend>
        <div id="<?php echo $tabId; ?>">
            <ul>
                <?php foreach($this->data as $site) : ?>
                <li><a href="#<?php echo $site['Site']['id'] ?>"><?php echo $site['Site']['name']; ?></a></li>
                <?php endforeach; ?>
            </ul>
            <?php foreach($this->data as $site) : ?>
            <div id="<?php echo $site['Site']['id'] ?>">
                    <?php echo $this->requestAction('supplier_customers/view_site/' . $site['Site']['customer_id'] . "/{$site['Site']['id']}", array('return')); ?>
            </div>
            <?php endforeach; ?>
        </div>
    </fieldset>
</div>
<script type="text/javascript">
    $j(function() {
        $j("#<?php echo $tabId; ?>").tabs(tab_options);
    });
</script>
